Don't try to draw too narrow or too low arcs, they seem to fail, at least
authorTor Lillqvist <tml@iki.fi>
Tue, 2 May 2000 21:36:08 +0000 (21:36 +0000)
committerTor Lillqvist <tml@src.gnome.org>
Tue, 2 May 2000 21:36:08 +0000 (21:36 +0000)
2000-05-02  Tor Lillqvist  <tml@iki.fi>

* gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_arc): Don't try to
draw too narrow or too low arcs, they seem to fail, at least with
some display drivers.

* gdk/gdk.c (gdk_init_check): Use G_DIR_SEPARATOR.

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gdk/gdk.c
gdk/win32/gdkdrawable-win32.c

index 6670cdd2b731e3edacd662971cd7a19c68825e1b..d9891d959a4923a744c11f702f34e474b48f8119 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2000-05-02  Tor Lillqvist  <tml@iki.fi>
 
+       * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_arc): Don't try to
+       draw too narrow or too low arcs, they seem to fail, at least with
+       some display drivers.
+
+       * gdk/gdk.c (gdk_init_check): Use G_DIR_SEPARATOR.
+
        Large changes to the Win32 backend, partially made necessary by
        the changes to the backend-independent internal
        structures. Attempts to implement similar backing store stuff as
index 6670cdd2b731e3edacd662971cd7a19c68825e1b..d9891d959a4923a744c11f702f34e474b48f8119 100644 (file)
@@ -1,5 +1,11 @@
 2000-05-02  Tor Lillqvist  <tml@iki.fi>
 
+       * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_arc): Don't try to
+       draw too narrow or too low arcs, they seem to fail, at least with
+       some display drivers.
+
+       * gdk/gdk.c (gdk_init_check): Use G_DIR_SEPARATOR.
+
        Large changes to the Win32 backend, partially made necessary by
        the changes to the backend-independent internal
        structures. Attempts to implement similar backing store stuff as
index 6670cdd2b731e3edacd662971cd7a19c68825e1b..d9891d959a4923a744c11f702f34e474b48f8119 100644 (file)
@@ -1,5 +1,11 @@
 2000-05-02  Tor Lillqvist  <tml@iki.fi>
 
+       * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_arc): Don't try to
+       draw too narrow or too low arcs, they seem to fail, at least with
+       some display drivers.
+
+       * gdk/gdk.c (gdk_init_check): Use G_DIR_SEPARATOR.
+
        Large changes to the Win32 backend, partially made necessary by
        the changes to the backend-independent internal
        structures. Attempts to implement similar backing store stuff as
index 6670cdd2b731e3edacd662971cd7a19c68825e1b..d9891d959a4923a744c11f702f34e474b48f8119 100644 (file)
@@ -1,5 +1,11 @@
 2000-05-02  Tor Lillqvist  <tml@iki.fi>
 
+       * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_arc): Don't try to
+       draw too narrow or too low arcs, they seem to fail, at least with
+       some display drivers.
+
+       * gdk/gdk.c (gdk_init_check): Use G_DIR_SEPARATOR.
+
        Large changes to the Win32 backend, partially made necessary by
        the changes to the backend-independent internal
        structures. Attempts to implement similar backing store stuff as
index 6670cdd2b731e3edacd662971cd7a19c68825e1b..d9891d959a4923a744c11f702f34e474b48f8119 100644 (file)
@@ -1,5 +1,11 @@
 2000-05-02  Tor Lillqvist  <tml@iki.fi>
 
+       * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_arc): Don't try to
+       draw too narrow or too low arcs, they seem to fail, at least with
+       some display drivers.
+
+       * gdk/gdk.c (gdk_init_check): Use G_DIR_SEPARATOR.
+
        Large changes to the Win32 backend, partially made necessary by
        the changes to the backend-independent internal
        structures. Attempts to implement similar backing store stuff as
index 6670cdd2b731e3edacd662971cd7a19c68825e1b..d9891d959a4923a744c11f702f34e474b48f8119 100644 (file)
@@ -1,5 +1,11 @@
 2000-05-02  Tor Lillqvist  <tml@iki.fi>
 
+       * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_arc): Don't try to
+       draw too narrow or too low arcs, they seem to fail, at least with
+       some display drivers.
+
+       * gdk/gdk.c (gdk_init_check): Use G_DIR_SEPARATOR.
+
        Large changes to the Win32 backend, partially made necessary by
        the changes to the backend-independent internal
        structures. Attempts to implement similar backing store stuff as
index 6670cdd2b731e3edacd662971cd7a19c68825e1b..d9891d959a4923a744c11f702f34e474b48f8119 100644 (file)
@@ -1,5 +1,11 @@
 2000-05-02  Tor Lillqvist  <tml@iki.fi>
 
+       * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_arc): Don't try to
+       draw too narrow or too low arcs, they seem to fail, at least with
+       some display drivers.
+
+       * gdk/gdk.c (gdk_init_check): Use G_DIR_SEPARATOR.
+
        Large changes to the Win32 backend, partially made necessary by
        the changes to the backend-independent internal
        structures. Attempts to implement similar backing store stuff as
index 7a1b7de48a1bd75153030cec8d5fc5fc144018ee..b5b028e5e3c7ecc08bc4bf751c7b37a3421595cf 100644 (file)
--- a/gdk/gdk.c
+++ b/gdk/gdk.c
@@ -294,7 +294,7 @@ gdk_init_check (int    *argc,
        {
          gchar *d;
          
-         d = strrchr((*argv)[0],'/');
+         d = strrchr((*argv)[0], G_DIR_SEPARATOR);
          if (d != NULL)
            g_set_prgname (d + 1);
          else
index f2a824355d7162ede3994f99192ab6473b2c2394..4d950f47b785215e2de9017854feb5ac26225cbf 100644 (file)
@@ -301,7 +301,10 @@ gdk_win32_draw_arc (GdkDrawable *drawable,
                           GDK_DRAWABLE_XID (drawable),
                           x, y, width, height, angle1, angle2));
 
-  if (width != 0 && height != 0 && angle2 != 0)
+  /* Seems that drawing arcs with width or height <= 2 fails, at least
+   * with my TNT card.
+   */
+  if (width > 2 && height > 2 && angle2 != 0)
     {
       hdc = gdk_gc_predraw (drawable, gc_private,
                            GDK_GC_FOREGROUND|GDK_GC_BACKGROUND);